package com.example.parking.domain.repository;

import com.example.parking.domain.model.ParkingSpace;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ParkingSpaceRepository extends JpaRepository<ParkingSpace, Long> {
    List<ParkingSpace> findByLotCode(String lotCode);
    boolean existsByLotCodeAndSpaceCode(String lotCode, String spaceCode);
    java.util.Optional<ParkingSpace> findByLotCodeAndSpaceCode(String lotCode, String spaceCode);
}


